from django.contrib import admin
from django.urls import path, re_path

from . import views

urlpatterns = [
    path('api/v1.0/user/register/', views.RegisterView.as_view()),
    path('api/v1.0/login/', views.LoginView.as_view()),
    path('api/v1.0/logout/', views.LogoutView.as_view()),
    path('api/v1.0/session/', views.SessionView.as_view()),
    # 上传房源照片
    re_path(r'^api/v1.0/houses/(?P<house_id>\d+)/images/$', views.Hose_sourse_View.as_view()),
    # 上传顾客头像
    path('api/v1.0/user/avatar/', views.UserAvatar.as_view()),

    # 用户信息获取/修改
    path('api/v1.0/user/profile/', views.UserProfile.as_view()),

    # 用户真实信息获取/设置
    path('api/v1.0/user/auth/', views.AuthProfile.as_view()),

]
